package scau.redi.social_platform.dao;

import scau.redi.social_platform.domain.pojo.SharedCollection;

import java.util.List;

public interface SharedCollectionMapper {
    int deleteByPrimaryKey(Integer id);

    int deleteBySharedId(Integer sharedId);

    int deleteBySharedIdAndUserId(Integer sharedId, Integer userId);

    int insert(SharedCollection record);

    int insertSelective(SharedCollection record);

    SharedCollection selectByPrimaryKey(Integer id);

    List<SharedCollection> selectBySharedId(Integer sharedId);

    int selectLastInsertId();

    List<SharedCollection> getAllByUserId(Integer userId);

    int updateByPrimaryKeySelective(SharedCollection record);

    int updateByPrimaryKey(SharedCollection record);
}